package site.shihuan.helpdesk.im.manager;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import site.shihuan.helpdesk.im.dao.SvcRuContactDao;
import site.shihuan.helpdesk.im.message.impl.ChatMessage;
import site.shihuan.helpdesk.im.model.po.SvcRuContactPO;
import site.shihuan.helpdesk.im.model.vo.VisitorVO;

import java.util.List;

/**
 * 客服联系人管理
 *
 * @author 周世焕
 * @Date 2021/3/2 10:38
 */
@Component
@Slf4j
public class ContactManager {

    @Autowired
    private SvcRuContactDao ruContactDao;


    /**
     * 更新最近一条聊天消息
     * @param contactPO
     */
    public void updateLatestMsg(SvcRuContactPO contactPO) {
        ruContactDao.updateByPrimaryKeySelective(contactPO);
    }
}
